Skip to content

fix(ci): re-verify PR state before auto-closing to prevent race conditions - #5213

Open
fernandolins wants to merge 1 commit into
mainfrom
fix/ci-auto-close-race-condition
Open

fix(ci): re-verify PR state before auto-closing to prevent race conditions#5213
fernandolins wants to merge 1 commit into
mainfrom
fix/ci-auto-close-race-condition

Conversation

@fernandolins

Copy link
Copy Markdown
Contributor

Linked issue

Refs #5189

Summary / motivation

The auto-close-missing-issue cron was closing PRs that had already had their missing-issue label removed, including PRs with a valid linked issue.

Before / after behavior

Before: PRs could be closed even after contributors linked an issue, due to a stale snapshot from the initial pagination.
After: the cron re-verifies each PR's current state immediately before closing, eliminating the race condition.

@fernandolins fernandolins added the hotfix Bugfix PRs exempt from the linked issue requirement label Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotfix Bugfix PRs exempt from the linked issue requirement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant